const Layout = () => import('@/layout/index.vue')
// 从指定目录下加载vue组件
const OrderStatistics = () => import('@/views/order/orderStatistics/index.vue')
const Echarts = () => import('@/views/order/echarts/index.vue')

export default [
  {
    path: '/order',
    component: Layout,
    //每个路由的名称必须唯一：必须和后端菜单表中的组件名称相同
    name: 'order',
    meta: {
      title: '订单管理',
    },
    icon: 'Setting',
    children: [
      {
        path: 'orderStatistics',
        name: 'orderStatistics',
        component: OrderStatistics,
        icon: 'UserFilled',
        meta: {
          title: '订单统计',
        },
      },
      {
        path: 'echarts',
        name: 'echarts',
        component: Echarts,
        icon: 'UserFilled',
        meta: {
          title: 'Echarts测试',
        },
      },
    ],
  },
]
